package design.patterns.creational.builder.v2;

/**
 * @author gjx
 * @version v1.0
 * @Description
 * @date 2019/3/28 17:18
 */

/**
 * 具体建造者。实现抽象接口，构建和装配各个部件
 */
public class ComputerBuilder extends AbstractComputerBuilder {
    public void buildMemory() {
        computer.setMemory("三星");
    }

    public void buildHardDisk() {
        computer.setHardDisk("西数");

    }

    public void buildCpu() {
        computer.setCpu("AMD");
    }

    public void buildMainBoard() {
        computer.setMainBoard("华硕");
    }
}
